import java.awt.*;

public class SizeR implements java.lang.Cloneable
{
    private double cx;
    private double cy;
    
    public SizeR(double cx, double cy)
    {
        this.cx = cx;
        this.cy = cy;
    }
    
    public Object clone() throws CloneNotSupportedException
    {
        SizeR s = (SizeR) super.clone();
        s.cx = this.getWidth();
        s.cy = this.getHeight();
        return s;
    }
    
    public double getWidth()
    {
        return this.cx;
    }
    
    public void setWidth(double width)
    {
        this.cx = width;
    }
    
    public double getHeight()
    {
        return this.cy;
    }
    
    public void setHeight(double height)
    {
        this.cy = height;
    }
    
    public boolean equals(Object o)
    {
        if (o instanceof PointR)
        {
            SizeR s = (SizeR) o;
            return (this.cx == s.cx && this.cy == s.cy);
        }
        return false;
    }
    
    public int hashCode()
    {
        return super.hashCode();
    }
}
